<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	template="/resources/templates/pageTemplate.xhtml">

	<f:metadata>
		<f:viewParam name="page" value="#{sysCalendarBean.page}"/>
		<f:event type="preRenderView" listener="#{sysCalendarBean.paginate}"/>
	</f:metadata>

	<ui:param name="pageTitle" value="Search Sys Calendar entities"/>

	<ui:define name="header">
		Sys Calendar
	</ui:define>

	<ui:define name="subheader">
		Search Sys Calendar entities
	</ui:define>

	<ui:define name="footer"/>

	<ui:define name="main">
		<h:form id="search">
			<f:validateBean disabled="true">
				<h:panelGroup styleClass="search">

					<h:panelGrid columnClasses="label,component,required" columns="3">
						<h:outputLabel for="sysCalendarBeanExampleRecCode" value="Rec Code:"/>
						<h:panelGroup>
							<h:inputText id="sysCalendarBeanExampleRecCode" value="#{sysCalendarBean.example.recCode}"/>
							<h:message for="sysCalendarBeanExampleRecCode" styleClass="error"/>
						</h:panelGroup>
						<h:outputText/>
						<h:outputLabel for="sysCalendarBeanExampleColYear" value="Col Year:"/>
						<h:panelGroup>
							<h:inputText id="sysCalendarBeanExampleColYear" value="#{sysCalendarBean.example.colYear}"/>
							<h:message for="sysCalendarBeanExampleColYear" styleClass="error"/>
						</h:panelGroup>
						<h:outputText/>
						<h:outputLabel for="sysCalendarBeanExampleColMonth" value="Col Month:"/>
						<h:panelGroup>
							<h:inputText id="sysCalendarBeanExampleColMonth" value="#{sysCalendarBean.example.colMonth}"/>
							<h:message for="sysCalendarBeanExampleColMonth" styleClass="error"/>
						</h:panelGroup>
						<h:outputText/>
						<h:outputLabel for="sysCalendarBeanExampleColDay" value="Col Day:"/>
						<h:panelGroup>
							<h:inputText id="sysCalendarBeanExampleColDay" value="#{sysCalendarBean.example.colDay}"/>
							<h:message for="sysCalendarBeanExampleColDay" styleClass="error"/>
						</h:panelGroup>
						<h:outputText/>
						<h:outputLabel for="sysCalendarBeanExampleColYymmdd" value="Col Yymmdd:"/>
						<h:panelGroup>
							<h:inputText id="sysCalendarBeanExampleColYymmdd" value="#{sysCalendarBean.example.colYymmdd}"/>
							<h:message for="sysCalendarBeanExampleColYymmdd" styleClass="error"/>
						</h:panelGroup>
						<h:outputText/>
					</h:panelGrid>
					<h:panelGroup styleClass="buttons">
						<h:commandLink value="Search" action="#{sysCalendarBean.search}" styleClass="btn btn-primary"/>
						<h:commandLink value="Create New" action="#{sysCalendarBean.create}" styleClass="btn btn-primary"/>
					</h:panelGroup>
				</h:panelGroup>
			</f:validateBean>
			
			<h:dataTable id="sysCalendarBeanPageItems" styleClass="data-table" value="#{sysCalendarBean.pageItems}" var="_item">
				<h:column>
					<f:facet name="header">
						<h:outputText value="Rec Code"/>
					</f:facet>
					<h:link outcome="/form/sysCalendar/view">
						<f:param name="id" value="#{_item.recCode}"/>
						<h:outputText id="itemRecCode" value="#{_item.recCode}"/>
					</h:link>
				</h:column>
			</h:dataTable>
			<ui:include src="/resources/scaffold/paginator.xhtml">
				<ui:param name="paginatorBean" value="#{sysCalendarBean}"/>
			</ui:include>
		</h:form>
			
	</ui:define>

</ui:composition>
